package com.demo2;

class Student06 {
    private String name;
    private int age;

    public Student06(String n, int a) {
        name = n;
        age = a;
    }

    void read() {
        System.out.println("大家好，我是" + name + ",年龄" + age);
    }
}

public class Example06 {
    public static void main(String[] args) {
        Student06 stu = new Student06("张三", 18);
        stu.read();
    }
}
